from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'hosts', views.HostViewSet)
router.register(r'data-centers', views.DataCenterViewSet)
router.register(r'cities', views.CityViewSet)
router.register(r'host-statistics', views.HostStatisticsViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('hosts/<int:pk>/ping/', views.ping_host, name='host-ping'),
]